<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link th:href="@{/css/style.css}" rel="stylesheet" type="text/css" />
<script type="text/javascript" th:src="@{/js/jquery.js}"></script>
</head>

<body>
<div class="place"> <span>位置：</span>
  <ul class="placeul">
    <li>营销管理</li>
    <li>采购单管理</li>
    <li>采购单详情</li>
  </ul>
</div>
<div class="formbody">
  <div class="formtitle"><span>采购单信息</span></div>
  <ul class="forminfo">
    <li>
      <label>采单编号</label>
      <cite th:text="${purchase.purchaseId}">CG201711180001</cite>
    </li>
    <li>
      <label>采购时间</label>
      <cite th:text="${#dates.format(purchase.purchaseTime,'yyyy-MM-dd HH:mm:ss')}">2017-11-18 15:36:10</cite>
    </li>
    <li>
      <label>总金额</label>
       <cite th:text="${purchase.totalMoney}">￥9,876,582</cite>
    </li>
    <li>
      <label>操作人</label>
      <cite th:text="${purchase.creatUser!=null?purchase.creatUser.uname:''}">关羽</cite>
    </li>
    <li>
      <label>审核状态</label>
      <cite th:if="${purchase.checkStatus==1}">未审核</cite>
      <cite th:if="${purchase.checkStatus==2}">审核中</cite>
      <cite th:if="${purchase.checkStatus==3}">审核通过</cite>
      <cite th:if="${purchase.checkStatus==4}">审核未通过</cite>
    </li>
    <li>
      <label>审核意见</label>
      <cite th:text="${purchase.checkOpinion}">做的很详细，同意通过</cite>
    </li>
    <li>
      <label>审核人</label>
      <cite th:text="${purchase.checkUser!=null?purchase.checkUser.uname:''}">曹操</cite>
    </li>
    <li>
      <label>审核时间</label>
      <cite th:text="${#dates.format(purchase.checkTime,'yyyy-MM-dd HH:mm:ss')}">2017-01-30 12:05:05</cite>
    </li>
    <li th:if="purchase.warehouse!=null">
      <label>入货仓库</label>
      <cite><a th:href="@{/storage/details?id=}+${purchase.warehouse.id}" title="点击查看仓库详细信息" class="tablelink" th:text="${purchase.warehouse.cName}">南京21号仓库</a></cite>
    </li>
    <li th:if="rkWarehouse!=null">
      <label>入库时间</label>
      <cite th:text="${#dates.format(rkWarehouse.rkDate,'yyyy-MM-dd')}">2013-09-09 15:05:05</cite>
    </li>
    <li th:if="rkWarehouse!=null">
      <label>入库人</label>
      <cite th:text="${rkWarehouse.rkUsers.uname}">朱元璋</cite>
    </li>
    <li th:if="rkWarehouse!=null">
      <label>入库状态</label>
      <cite th:text="${rkWarehouse.state=='1'?'未入库':'已入库'}">已入库</cite>
    </li>
  </ul>
  <table class="tablelist">
      <thead>
        <tr>
          <th>序号</th>
          <th>品牌</th>
          <th>类型</th>
          <th>型号</th>
          <th>厂商</th>
          <th>数量</th>
          <th>单位</th>
          <th>单价</th>
          <th>金额</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>1</td>
          <td th:text="${details!=null?details.brandName:''}">联想</td>
          <td th:text="${details!=null?details.typeName:''}" >笔记本电脑</td>
          <td th:text="${details!=null?details.proModel:''}">T470</td>
          <td th:text="${details!=null?details.firmName:''}">北京联想科技股份有限公司</td>
          <td th:text="${details!=null?details.count:''}">10</td>
          <td>台</td>
          <td th:text="${details!=null?details.purchasePrice:''}">9998</td>
          <td th:text="${details!=null?details.totalMoney:''}">99980</td>
        </tr>
      </tbody>
  </table>
  <div style="margin-top:20px; margin-left:20px;">
  <input name="" type="button" class="btn" value="返回" onclick="window.history.go(-1);"/>
  </div>
</div>
<script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
</script>
</body>
</html>
